home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1996-05-01 | 3.6 KB | 169 lines | [ TEXT/MPS ]
; ; File: DiskInit.a ; ; Contains: Disk Initialization Package ('PACK' 2) Interfaces. ; ; Version: Technology: System 7.5 ; Release: Universal Interfaces 3.0d3 on Copland DR1 ; ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved. ; ; Bugs?: If you find a problem with this file, send the file and version ; information (from above) and the problem description to: ; ; Internet: apple.bugs@applelink.apple.com ; AppleLink: APPLE.BUGS ; ; IF &TYPE('__DISKINIT__') = 'UNDEFINED' THEN __DISKINIT__ SET 1 IF &TYPE('__TYPES__') = 'UNDEFINED' THEN include 'Types.a' ENDIF IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN HFSDefaults RECORD 0 sigWord ds.b 2 ; offset: $0 (0) ; signature word abSize ds.l 1 ; offset: $2 (2) ; allocation block size in bytes clpSize ds.l 1 ; offset: $6 (6) ; clump size in bytes nxFreeFN ds.l 1 ; offset: $A (10) ; next free file number btClpSize ds.l 1 ; offset: $E (14) ; B-Tree clump size in bytes rsrv1 ds.w 1 ; offset: $12 (18) ; reserved rsrv2 ds.w 1 ; offset: $14 (20) ; reserved rsrv3 ds.w 1 ; offset: $16 (22) ; reserved sizeof EQU * ; size: $18 (24) ENDR ; ; pascal void DILoad(void ) ; IF ¬ GENERATINGCFM THEN Macro _DILoad moveq #2,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DILoad ENDIF ; ; pascal void DIUnload(void ) ; IF ¬ GENERATINGCFM THEN Macro _DIUnload moveq #4,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIUnload ENDIF ; ; pascal short DIBadMount(Point where, long evtMessage) ; IF ¬ GENERATINGCFM THEN Macro _DIBadMount moveq #0,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIBadMount ENDIF ; ; pascal OSErr DIFormat(short drvNum) ; IF ¬ GENERATINGCFM THEN Macro _DIFormat moveq #6,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIFormat ENDIF ; ; pascal OSErr DIVerify(short drvNum) ; IF ¬ GENERATINGCFM THEN Macro _DIVerify moveq #8,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIVerify ENDIF ; ; pascal OSErr DIZero(short drvNum, ConstStr255Param volName) ; IF ¬ GENERATINGCFM THEN Macro _DIZero moveq #10,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIZero ENDIF ; ; DIXFormat, DIXZero, and DIReformat are only available when FSM (File System Manager) is installed. ; FSM is part of Macintosh PC Exchange and System 7.5. ; ; ; pascal OSErr DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg, unsigned long *actSize) ; IF ¬ GENERATINGCFM THEN Macro _DIXFormat moveq #12,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIXFormat ENDIF ; ; pascal OSErr DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus, short volTypeSelector, unsigned long volSize, void *extendedInfoPtr) ; IF ¬ GENERATINGCFM THEN Macro _DIXZero moveq #14,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIXZero ENDIF ; ; pascal OSErr DIReformat(short drvNum, short fsid, ConstStr255Param volName, ConstStr255Param msgText) ; IF ¬ GENERATINGCFM THEN Macro _DIReformat moveq #16,D0 move.w D0,-(sp) dc.w $A9E9 EndM ELSE IMPORT_CFM_FUNCTION DIReformat ENDIF ENDIF ENDIF ; __DISKINIT__